<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="a_head.htm"/>
  </head>


<body >
  <table  align="center" id="breite" cellspacing="0" cellpadding="0" border="0"  >
    <tr>
      <td align="center" width="100%"   >
		
		<!--schatten um die seite oben -->
        <table width="100%" align="center"      border="0" cellpadding="0" cellspacing="0">
			<tr>
			 <td valign="top" id="s1" ><img src="images/pixelspace.gif" width="50" height="50" border="0" alt=""></td>
			 <td id="s2"><img src="images/pixelspace.gif" width="50" height="50" border="0" alt=""></td>
			 <td id="s3" ><img src="images/pixelspace.gif" width="50" height="50" border="0" alt=""></td>
			</tr>
			<tr>
			 <td valign="top" id="s4" ><img src="images/pixelspace.gif" width="50" height="50" border="0" alt=""></td>
			 <td class="haupt"    width="100%">
		<!--ende schatten um die seite oben -->



		<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  			<tr>
     			<td colspan="3" id="top0" >&nbsp;</td>
  			</tr>
  			<tr>
     			<td valign="top">
					<table width="100%"  border="0" cellpadding="0" cellspacing="0">
 						<tr>
						    <td valign="top" id="top1" width="33%">
						       &nbsp;
						    </td>

							<td valign="top" id="top2" width="33%" >
								<jsp:include page="a_top_menu.htm"/>
  							</td>
						    <td  valign="top"  id="top3" width="33%">
						    	  &nbsp;
						  	</td>
 						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="3"  id="top4"><div id="name">*** Go Green - share your car! ***</div></td>
			</tr>
			<tr>
				<td colspan="3"  id="inhalt"  >

					<div id="content">
						<h2><c:out value="${title}"/></h2>
						<p><c:out value="${message}"/></p>
						<table class="listing" border="1" rules="all" cellpadding="5">
							<colgroup>
								<col class="buttoncell"/>
								<col class="buttoncell"/>
								<col/>
								<col/>
								<col/>
								<col/>
							</colgroup>
							<tbody>
								<tr>
									<c:if test="${edit}">
										<th></th>
										<th></th>
									</c:if>
									<th>Kennzeichen</th>
									<th>Hersteller</th>
									<th>Modell</th>
									<th>Leistung</th>
									<th>Kilometerstand</th>
									<th>Akt. Standort</th>
								</tr>
								<c:forEach items="${automobil}" var="automobil">
									<tr>
										<c:if test="${edit}">
											<td>
												<a href="EditAutomobil.html?id=<c:out value="${automobil.id}"/>">
													<img src="images/buttons/button_edit_1.png" alt="Automobil bearbeiten"/>
												</a>
											</td>
											<td>
												<a href="LoescheAutomobil.html?id=<c:out value="${automobil.id}"/>">
													<img src="images/buttons/button_delete_1.png" alt="Automobil löschen"/>
												</a>
											</td>
										</c:if>	
										
										<td>
											<c:choose>
												<c:when test="${edit}">
													<c:out value="${automobil.kennzeichen}"/>
												</c:when>
												<c:otherwise>
													<a href="BeginneFahrt.html?autoID=<c:out value="${automobil.id}"/>">
														<c:out value="${automobil.kennzeichen}"/>
													</a>
												</c:otherwise>
											</c:choose>													
										</td>
										
										<td>
											<c:out value="${automobil.hersteller}"/>
										</td>						
										
										<td>
											<c:out value="${automobil.modell}"/>
										</td>	
															
										<td>
											<c:out value="${automobil.leistung}"/>
										</td>						
										
										<td>
											<c:out value="${automobil.kilometerstand}"/>
										</td>	
										
										<td>
											<a href="DisplayStandort.html?id=<c:out value="${automobil.aktuellerstandort}"/>" alt="Standort anzeigen">
												<img src="images/buttons/button_googlemaps.png" alt="Standort anzeigen"/>
											</a>
										</td>
										
									</tr>
								</c:forEach>  
							</tbody>
						</table>
					</div>
				</td>
 			</tr>
		 </table>

     <jsp:include page="a_bottom_menu.htm"/>
 </body>
</html>